/**
 * jQuery successiveAppearance
 * 
 * Copyright 2009 Michael Moiseyev http://domdev.ru
 * 
 * Licensed under the MIT licence:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Sequential appearance of elements
 * Tested in FF 3.5, IE 7, Chrome 3.0, Opera 9.64
 *
 */
 
;(function($) {
	
	jQuery.fn.successiveAppearance = function (){
      var $this = $(this).css({opacity:0});
   	//start animation when all page has been loaded
		window.onload = function(){
			$.fn.successiveAppearance.startAppearing($this);
		}
	   return this;
	   
	};//successiveAppearance
	
	$.fn.successiveAppearance.startAppearing = function(obj) {
      var i = 0;
      obj.eq(i).animate({
         opacity: 1
      }, 500, function( ){
         obj.eq(++i).animate({
            opacity: 1
         }, 500, arguments.callee )
      });
	};//startAppearing

})(jQuery);